
// 自动生成模板Rules
package rule
import (
	"time"
)

// rules表 结构体  Rules
type Rules struct {
    Id  *int `json:"id" form:"id" gorm:"primarykey;column:id;comment:;size:20;"`  //id字段 
    CreatedAt  *time.Time `json:"createdAt" form:"createdAt" gorm:"column:created_at;comment:;"`  //createdAt字段 
    UpdatedAt  *time.Time `json:"updatedAt" form:"updatedAt" gorm:"column:updated_at;comment:;"`  //updatedAt字段 
    DeletedAt  *time.Time `json:"deletedAt" form:"deletedAt" gorm:"column:deleted_at;comment:;"`  //deletedAt字段 
    ImageUrl  *string `json:"imageUrl" form:"imageUrl" gorm:"column:image_url;comment:;size:255;"`  //imageUrl字段 
    Title  *string `json:"title" form:"title" gorm:"column:title;comment:标题;size:50;"`  //标题 
    Introduce  *string `json:"introduce" form:"introduce" gorm:"column:introduce;comment:详情;size:100;"`  //详情 
    Moment  *string `json:"moment" form:"moment" gorm:"column:moment;comment:过期时间;size:30;"`  //过期时间 
    Price  *float64 `json:"price" form:"price" gorm:"column:price;comment:优惠价格;size:10;"`  //优惠价格 
}


// TableName rules表 Rules自定义表名 rules
func (Rules) TableName() string {
    return "rules"
}





